import { ForbiddenException, HttpException, HttpStatus, Injectable } from "@nestjs/common";
import { FORBIDDEN_MESSAGE } from "@nestjs/core/guards";

@Injectable()
    export class UsersService{
        modifyMobile(id: number, mobile: string) {
          throw new Error('Method not implemented.');
        }
        async searchUsers(){
            throw new  ForbiddenException
            return[];
        }
        async getUser(id:number){
            return{
                id ,
                username:'张三',
                age:33,
                gender:'男',
                createTime:'2025-10-13 00:00:00',
                updateTime:'2025-10-13 00:00:00',
    
            }
        }
    }
